// 基于template/src/widgets/{{appEntities}}/{{ctrls@CALENDAREXPBAR}}-calendar-exp-bar/{{spinalCase ctrl.codeName}}-calendar-exp-bar-model.ts.hbs生成
function getModel() {
    return {
		name: "calendarexpbar",
		caption: "",
		codeName: "CalendarExpViewcalendarexpbar",
		cssName: "",
		controlType: "CALENDAREXPBAR",
		showTitleBar: true,
		title: "",
        lanResTag: "",
        quickSearchPlaceholder: '订单名称,',
		toolbarItems: getToolbarItems(),
		enableSearch: true,
		entityCodeName: 'IBIZOrder',        
		xDataCtrlName: 'calendarexpbar_calendar',
		xDataCodeName: 'OrderCalendarNavigation',
		xDataDeCodeName: 'ibizorder',
		xDataDeName: 'IBIZORDER',
        ctrlParams: {
            IBIZOrdercalendarexpbar_calendar: {},
            IBIZOrdercalendarexpbar_toolbar: {},
        },
	}
}
export const model = getModel();

//  获取工具栏项
function getToolbarItems() {
  return [
    {
  		actionLevel: '100',
  		caption: '编辑',
  		captionLanResTag: 'TBB.TEXT.*.EDIT',
  		name: 'deuiaction3',
  		showCaption: true,
  		tooltip: '编辑',
  		tooltipLanResTag: 'TBB.TOOLTIP.*.EDIT',
  		itemType: 'DEUIACTION',
  		showIcon: true,
  		disabled: false,
  		cssName: '',
  		imagePath: '',
  		iconCls: 'fa fa-edit',
          imagePathX: '',
  		dataAccessAction: '',
  		noPrivDisplayMode: 2,
  		uiAction: {
  			codeName: 'Edit',
  			uIActionMode: 'SYS',
  			actionTarget: 'SINGLEKEY',
  			uIActionTag: 'Edit',
  			uIActionType: 'DEUIACTION'
  		},
          logic: {
          	name: 'calendarexpbar_toolbar_deuiaction3_click',
          	actionTag: 'Edit',
          	xDataCtrlName: 'calendarexpbar_calendar',
          	predefinedType: 'GRIDVIEW_EDITACTION',
          }
    },
  ];
}
